<script type="text/javascript">
    var MAPURL = {
        'ajax_upload_image_url': '{{helper.pathFor("adcosvup")}}',
        'ajax_upload_swf': '/public/tool/uploadify/uploadify.swf',
    }
    window.onload = function () {
        let dh = 280;
        const path = location.pathname;
        if(path.indexOf('user/recharge') > 0) dh += 70;
        if(path.indexOf('promote/income') > 0) dh += 20;
        if(path.indexOf('article/sys_notice') > 0) dh -= 110;
        console.log(dh);
        const height = window.innerHeight - dh;
        $('.table-responsive').css({height: height + 'px'});
        var tableCont = document.querySelector('.table-responsive');
        function scrollHandle (e){
            var scrollTop = this.scrollTop;
            this.querySelector('thead').style.transform = 'translateY(' + scrollTop + 'px)';
        }
        if(tableCont) tableCont.addEventListener('scroll',scrollHandle);
    }
</script>
<script src="/public/admin/js/admin-ajax.js"></script>
<script src="/public/admin/js/himage.js"></script>
</body>
</html>